package com.ssm.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Lenovo on 2019-10-15.
 */
public class Test {

    @org.junit.Test
    public void test(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
        Human zhangsan= (Human) applicationContext.getBean("zhangsan");
        zhangsan.introduce();
    }
}
